package com.lg.controller;


import com.lg.dto.DTO;
import com.lg.service.StudentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class StudentController{

    @Resource
    StudentService studentService;
    @RequestMapping("/students")
    public DTO getAllJSon() throws Exception{
        return studentService.getAllStudents();
    }

}
